import sys
from PyQt5.QtWidgets import *
from PyQt5.QtGui import *
from PyQt5.QtCore import *
class Demo(QWidget):
    def __init__(self,parent=None):
        super(Demo,self).__init__(parent)
        self.setWindowTitle('不规则窗口的展示')
        self.label=QLabel('',self)
        self.setFixedSize(128,128)
        self.setWindowFlags(Qt.Dialog|Qt.CustomizeWindowHint)
        self.movie=QMovie('./images/loading.gif')
        self.label.setMovie(self.movie)
        self.movie.start()
if __name__ == '__main__':
    app=QApplication(sys.argv)
    win=Demo()
    win.show()
    sys.exit(app.exec_())